$def with (privData)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
$:privData['render'].header(privData)
<body>
$:privData['render'].pageheader(privData)

<h2>新增资讯</h2>
<form action="/admin/news/save" method="post">
    <table width="750" border="0" cellspacing="0" cellpadding="1" class="addtable">
        <tr>
            <td width="100" scope="col">标题:</td>
            <td width="608" scope="col"><input name="name" type="text" id="name" value="" /></td>
        </tr>
        <tr>
            <td width="100" scope="col">描述:</td>
            <td width="608" scope="col"><input name="desc" type="text" id="desc" value="" /></td>
        </tr>        
        <tr>
            <td colspan="2" scope="col">
                $:privData['render'].album_insert_widget(privData)
                <textarea rows="10" cols="5" name="content" id="content"></textarea>
    <script type="text/javascript" src="$makeUrl('/static/editor/tinyeditor.js')"></script>
    <link rel="stylesheet" href="$makeUrl('/static/editor/style.css')" />
    <script type="text/javascript">
        var instance=new TINY.editor.edit('editor',{
            id:'content',
            width:740,
            height:175,
            cssclass:'contentls',
            controlclass:'tecontrol',
            rowclass:'teheader',
            dividerclass:'tedivider',
            controls:['bold','italic','underline','strikethrough','|','subscript','superscript','|', 'orderedlist','unorderedlist','|','outdent','indent','|','leftalign',
                'centeralign','rightalign','blockjustify','|','unformat','|','undo','redo','print','n',
                'font','size','style','forecolor','backcolor','|','image','swf','media','upload','|','hr','link','unlink','|','cut','copy','paste'],
            footer:true,
            fonts:['楷体','宋体','黑体','Verdana','Arial','Georgia'],
            xhtml:true,
            uploadexc:"$makeUrl('/admin/upload')",
            bodyid:'editor',
            footerclass:'tefooter',
            toggle:{text:'源码',activetext:'视图',cssclass:'toggle'},
            resize:{cssclass:'resize'}
        });

        var _j = jQuery.noConflict();
        _j("#insert_img_album").change(function(){
            var sel_category = _j(this).val();
            _j("#insert_thumbnail_list").children("div").addClass("hidden").filter("#insert_thumbnail_list_"+sel_category).removeClass("hidden");
        });
        _j("#toggle_select_thumbnail").click(function(){
            _j("#insert_thumbnail_list").toggle();
        });
        _j("#insert_select_thumbnail").click(function(){
            window._tmp_edit_obj.execCommand("insertimage", 0, _j(":radio[name='insert_thumbnail_raido']:checked").val());
            _j("#insert_thumbnail_list").hide();
        });
    </script>
            </td>
        </tr>
        <tr>
            <td width="100" scope="col">缩略图:</td>
            <td width="608" scope="col">
                $:privData['render'].thumbnail_select_widget(privData)
            </td>
        </tr>        
        <tr>
            <td width="100" scope="col">分类:</td>
            <td width="608" scope="col">
                <SELECT  name="category" id="category">
                    $for k, v in privData['CATEGORY_LIST'].items():
                    <option value="$:k"
                    $if k == 1:
                        selected="selected"
                    >$:v</option>
                </SELECT>
            </td>
        </tr>
        <tr>
            <td scope="col">状态:</td>
            <td scope="col">
                <SELECT  name="status" id="status">
                $for k,v in privData['STATUS_LIST'].items():
                    <option value="$:k"
                    $if k == 1:
                        selected="selected"
                    >$:v</option>
                </SELECT>
            </td>
        </tr>
        <tr>
            <td colspan="2" scope="col"><input type="submit" name="submit" value="保存" id="submits" onmouseover="instance.post();" /></td>
        </tr>
</form>

</body></html>
